<div class="top_content" style="width: 94.8%;margin: 1rem 2.6% auto 2.6% ;line-height:0;">
    <php> $logo=sp_getslide("logo"); </php>
    <div class="logo">
        <!--<img src="__TMPL__Public/images/logo.png">-->
        <a href="{:sp_get_image_preview_url($logo[0]['slide_url'])}"><img src="{:sp_get_image_preview_url($logo[0]['slide_pic'])}" ></a>
    </div>
    <div class="phone">
        <span style="height: 20px;">
           <a href="#" class="nav_open" onclick="opennav(this)"> <img src="__TMPL__Public/images/contact/nav.png"></a>
            <a href="#"  class="nav_close"  onclick="closenav(this)" > <img src="__TMPL__Public/images/contact/delete.png"></a>

        </span>
    </div>

</div>
<div style="width: 94.66%;position: relative;left: 3.67%;">
    <img src="__TMPL__Public/images/horn.png" alt="" style="position: absolute;top: 18%">
    <marquee  style="margin-left: 11%;color:#e57272 "  direction="left" behavior="scroll" loop="infinite" scrollamount="5"   vspace="0"  align="bottom" height="20" width="86%" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="1" scrolldelay="1">{:tcioc_get_contact_us_info("notice")}</marquee>
</div>
<div class="navigation" style="width: 100%;margin: 0 auto;display: none">
    <php>
        $effected_id="nav-nav";
        $filetpl="<a href='\$href' target='\$target'> \$label<p ><img src='__TMPL__Public/images/contact/nav_list.png' alt=''></p> </a>";
        $foldertpl="<a class='dropdown-toggle' data-toggle='dropdown' href='\$href' target='\$target'>\$label</a>";
        $ul_class="dropdown-menu" ;/*内部ul标签的class属性值*/
        $li_class="nav-list" ;/*内部li标签的class属性值*/
        $style="";/*最外层ul标签的class属性值*/
        $showlevel=6;/*显示的层级*/
        $dropdown='dropdown ';/*含有子目录的li标签的class属性值*/
    </php>
    {:sp_get_menu("main",$effected_id,$filetpl,$foldertpl,$ul_class,$li_class,$style,$showlevel,$dropdown)}
    <!--<ul >-->
        <!--<li><a href="index-m.html">首页</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
        <!--<li ><a href="core-m.html">中心简介</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
        <!--<li><a href="equipment-m.html">设备介绍</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
        <!--<li ><a href="case-m.html">典型案例</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
        <!--<li ><a href="">设备研发</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
        <!--<li ><a href="download-m.html">资料下载</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
        <!--<li ><a href="news-m.html">新闻动态</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
        <!--<li class="active"   ><a href="contact-m.html">联系我们</a><p ><img src="__TMPL__Public/images/contact/nav_list.png" alt=""></p></li>-->
    <!--</ul>-->
</div>
<script>
    var curr_url = window.location.href;  //获取当前URL
    var cur_url=curr_url.split('com');
    //	    alert(cur_url[1]);
    //	    console.log(cur_url[1]);
    $('#nav-nav a').each(function(i,n){  //循环导航的a标签
        var href = $(this).attr('href'); //a标签中的href链接
//        alert(href);
//        console.log(href);
        if(href === cur_url[1]){  //如果当前URL,和a标签中的href相等。
            $(this).parent().addClass('active');  //那么就给这个a标签增加home_page类。
        }
    });
</script>